﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ViCode_LeVi.Reports;
using ViCode_LeVi.Data;

namespace ViCode_LeVi.Controls
{
    /// <summary>
    /// Interaction logic for VMTabBalanceAndOthers_Investmentcalculation.xaml
    /// </summary>
    public partial class VMTabBalanceAndOthers_Investmentcalculation : UserControl
    {
        public VMTabBalanceAndOthers_Investmentcalculation()
        {
            InitializeComponent();

            this.Loaded += new RoutedEventHandler(VMTabBalanceAndOthers_Balance_Loaded);
        }
        Step_BalanceAndOthers_InvestmentCalculation _investmentCalculation = null;
        void VMTabBalanceAndOthers_Balance_Loaded(object sender, RoutedEventArgs e)
        {
            _investmentCalculation = this.DataContext as Step_BalanceAndOthers_InvestmentCalculation;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Report_Investmentcalculation rep = new Report_Investmentcalculation();
            var datasource = new List<Step_BalanceAndOthers_InvestmentCalculation>();
            datasource.Add(_investmentCalculation);
            frmViewReport frm = new frmViewReport(rep, datasource);
            frm.Show();
        }
    }
}
